package com.querie.test;

import org.hibernate.Session;

import com.querie.model.beans.QueryLog;
import com.querie.util.HibernateUtil;
import com.querie.util.Util;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		QueryLog querylog = new QueryLog(Util.getNextQueryId(),Util.getNextSessionId(),"select * from amit");
		Session session = HibernateUtil.getSessionFactory().openSession();
		session.beginTransaction();
		session.save(querylog);
		session.getTransaction().commit();
		session.close();
	}

}
